<%@ page language="java" import=" java.text.DateFormat,myUtils.Constants,java.util.*,po.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:include value="/layout/header.jsp" />
<SCRIPT language="javascript" src="js/page-navigater.js"></SCRIPT>
<!-- B.1 MAIN CONTENT -->
<%
   Organization org=(Organization)request.getAttribute("org");
   User user=(User)request.getAttribute("user");
   String right=(String)session.getAttribute("right");
   String status=(String)session.getAttribute("status");
   status=String.valueOf(Constants.ORG_MANAGER);
%>

 <div class="main-content">
<h1 class="pagetitle"><%=org.getName()%></h1>

        <div class="column1-unit">
		<ul>

		<li>成立时间:<%= DateFormat.getInstance().format( org.getDate())%></li>
		<li>社团管理者<%=user.getName()%></li>
		<li>社团类型:<%=(org.getType()==Constants.CHECKED_ORG?"已审核":"未通过审核")%></li>
		<li>社团所属:<%=org.getDepartment()%></li>
		<li>社团描述:<br><%=org.getDescription()%></li>

		</ul>
		<br>
		<ul>
            <%if(status.equals(String.valueOf(Constants.ORG_MANAGER))){%>
            <li><a href="memberlist.action?id=<%=org.getId()%>">查看人员名单</a></li>
            <li><a href="#">制订报名表</a></li>
		    <li><a href="getOrgActivities.action?orgId=<%=org.getId()%>">查看社团活动列表</a></li>
		    <li><a href="createActivityForm.action?orgId=<%=org.getId()%>&orgName=<%=org.getName()%>">创建活动</a></li>
            <li><a href="newsForm.action?orgId=<%=org.getId()%>">发布新公告</a></li>
            <%}else if(status.equals(String.valueOf(Constants.GUEST))){%>
            <li><a href="#">我想报名</a></li>
            <%}else if(status.equals(String.valueOf(Constants.ORG_MEMBER))){%>
            <li><a href="#">我想退出</a></li>
            <%}%>
		</ul>

		
        <hr class="clear-contentunit" />
      </div>

                
<s:include value="/layout/footer.jsp"/>
